<%@page import="cn.jhc.dao.ConnectionFactory"%>
<%@page import="cn.jhc.dao.NewsDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/taolunqu.css"></link>
<script type="text/javascript">
function MM_popupMsg(msg) {

     alert(msg);

}
</script>
<style>
*{border:0;}
</style>
<title>蓝调吉他社</title>
</head>
<body>
	<div id="wrapper">	
		<jsp:include page="./header.jsp"></jsp:include>
		<div id="address">
			<a>当前位置：　讨论区</a>
		</div>
		<div id="wrapperdown">
		<%
			int ActMsgCount,MsgCount,NewsMsgCount,MusicMsgCount;
			NewsDAO dao = new NewsDAO();
			dao.setCon(ConnectionFactory.getConnection());
			ActMsgCount = dao.getActCount();
		%>
		<%
			dao.setCon(ConnectionFactory.getConnection());
			MsgCount = dao.getCount();
		%>
		<%
			dao.setCon(ConnectionFactory.getConnection());
			NewsMsgCount = dao.getNewsCount();
		%>
		<%
			dao.setCon(ConnectionFactory.getConnection());
			MusicMsgCount = dao.getMusicCount();
		%>
		<table width="1000" align="left">
			<tr height="100">
				<td><a href="taolunquAct.jsp">活动讨论区</a></td>
				<td><a>主题：<%=ActMsgCount%></a></td>
			</tr>
			<tr height="100">
				<td><a href="taolunqu.jsp">无聊灌水区</a></td>
				<td><a>主题：<%=MsgCount%></a></td>
			</tr>
			<tr height="100">
				<td><a href="taolunquNew.jsp">新闻讨论区</a></td>
				<td><a>主题：<%=NewsMsgCount%></a></td>
			</tr>
			<tr height="100">
				<td><a href="taolunquMusic.jsp">乐曲交流区</a></td>
				<td><a>主题：<%=MusicMsgCount%></a></td>
			</tr>
		</table>
		</div>
		<jsp:include page="./copyright.jsp"></jsp:include>
	</div>
</body>
</html>
